package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.SkuInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author dyqstart
 * @create 2021-08-06-0:07
 * @since 1.0.0
 */
public interface SkuInfoMapper extends BaseMapper<SkuInfo> {

    void updateSkuSaleStatus(@Param("skuId") Long skuId,
                             @Param("status") int status);

    BigDecimal getSkuPrice(Long skuId);

    List<Long> getAllId();
}
